package com.itheima.edu.info.manager.day9;

import java.util.HashSet;

public class StudentTest {
    public static void main(String[] args) {
        HashSet<Student> hashSet = new HashSet<Student>();
        Student st = new Student("老八", 23);
        Student st1 = new Student("老八1", 23);
        Student st2 = new Student("老八2", 23);
        hashSet.add(st);
        hashSet.add(st1);
        hashSet.add(st2);
        for (Student student : hashSet) {
            System.out.println(student);
        }
    }
}
